/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package VietDQ;

import Entity.Event;
import Entity.Faq;
import javax.ejb.Local;

/**
 *
 * @author dukynguyen
 */
@Local
public interface VietDQSessionBeanLocal {

    Entity.Faq[] getFAQ();

    boolean AddNewFAQ(String question, String answer);

    public boolean UpdateFAQ(int id, String question, String answer);

    boolean activeFAQ(int id);

    boolean unActiveFAQ(int id);

    Faq findFAQByPrimarykey(int id);

    Event findEventByPK(int EvID);

    boolean InsertEvents(int CaID, String EvName, String Descriptions, String EvImage, String dateStart, String dateEnd);

    boolean DeleteEvents(int EvID);

    Entity.Event[] FindEventByLikeName(String EvName);

    boolean ExpireEvents(int EvID);

    CategoryEventDTO SearchEventsbyCategory(int CaID);

    Entity.Event[] GetAllEvents();

    Entity.Event[] findTop5NewEvent();

    EventDocumentDTO findDocumentByEvent(int id);
    
}
